export default {
  methods: {
    checkPermission(pointName) {
      let points = []
      if (this.$store.state.user.userInfo.roles) {
        points = this.$store.state.user.userInfo.roles.points
        return points.indexOf(pointName) !== -1
      }
    }
  }
}
